Repository navigation
test(interaction): stop the interaction-contract lane waiting real time - #4680
Conversation
Size Report
Startup median (7 runs, lower is better):
|
The lane's daemon scenarios each paid the post-open first-screen stabilization: the open marked the next capture, whose loop polled on a 200ms schedule, so every scenario scripted and absorbed two settling runner reads. The open now opts out with the product flag postGestureStabilization: false, and the harness scripts the one read its own snapshot performs. The scenarios prove dispatch shape, not the first-screen wait, which the provider-scenarios lane owns with its own scripted settling pair. Three --settle contract tests slept the settle loop's quiet windows on the wall clock while the harness already exposes createContractClock; they now pass it, so the loop runs its polls on the contract clock. The daemon-backed scenarios that lacked the documented parallel-budget exception now carry PARALLEL_PROVIDER_SCENARIO_TIMEOUT_MS, matching their siblings; coordinate errorTaxonomy timed out at the 5s default on main (run 44134141716). Local whole-lane duration: 15.1-16.0s to 9.5-10.0s; the settle tests go from ~1.5s each to under 6ms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
392045c to
d683ab2
Compare
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
The PR is ready at d683ab2: I found no problems in the code. All 18 checks pass or are intentionally skipped, including Integration Tests, Coverage, Lint/Typecheck, Repo Guards and the Smoke Tests, and the diff only touches the interaction-contract lane that Integration Tests runs directly. There are no conflicts, no open review threads, and nothing else stands in the way of merge. Not blocking: the 14-test timeout wrap re-indents about 25 tests, so the diff is large for a flag, a constant and three clock lines; you could keep the timeout only on the coordinate contract test the issue named, or drop it if the flag alone clears the timeouts. The three settleObservation tests would still pass without the injected clock, so nothing fails if it is removed; no change is needed, and you can take or leave both notes. The timing numbers come from the PR body. |
Summary
open: the next capture polled on a 200ms schedule, so each scenario scripted and absorbed two settling runner reads. The harness's open now passes the product flagpostGestureStabilization: falseand scripts the one read its own snapshot performs. The lane proves dispatch shape, not the first-screen wait, which the provider-scenarios lane owns with its own scripted settling pair.--settlecontract tests slept the settle loop's quiet windows on the wall clock; they now pass the harness's existingcreateContractClock, so the loop polls on the contract clock.PARALLEL_PROVIDER_SCENARIO_TIMEOUT_MS, matching their siblings;coordinate errorTaxonomytimed out at the 5s default on main (run 44134141716).Validation
vitest run --project interaction-contract: 11 files / 98 tests pass. Whole-lane duration 15.1–16.0s → 9.5–10.0s (three runs each, unloaded host). The threesettleObservationtests go from ~1.5s each to under 6ms; the per-daemon-test floor drops from ~530ms to ~340ms.tsc -b,oxlint --deny-warnings,oxfmt --checkclean on the touched files.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.